<?php
include("connect.php");
include("classes/access.php");

if(isset($_POST["sbt"]))
{
    $email = $_POST["email"];
    $password = $_POST["password"];
    $access = new access();
    $access->check_access($email,$password);	
}
?>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="css/screen.css" />
</head>
<form class="cmxform" method="POST" action="login.php">
<fieldset>
		<legend> S'inscrier </legend>
		<p>
			<label for="email">Email</label>
			<input id="email" name="email" />
		</p>
		<p>
			<label for="password">Password</label>
			<input id="password" name="password" type="password" />
		</p>
		<p>
			<input class="submit" type="submit" value="Submit" name="sbt"/>
		</p>
</fieldset>
</form>